#!/bin/sh

# Check for libxml2 headers
LIBXML_CFLAGS=`pkg-config --cflags libxml-2.0 2>/dev/null`
if [ $? = '1' ]; then
	echo "You do not have the development headers for libxml-2.0, which are required to build gntodo."
	exit 1
fi

# Check for libgnt headers
GNT_CFLAGS=`pkg-config --cflags gnt 2>/dev/null`
if [ $? = '1' ]; then
	echo "You do not have the development headers for libgnt, which are required to build gntodo."
	exit 1
fi

echo "***"
echo "* Everything is good to go. Take a deep breath, run 'make', then run './gntodo'."
echo "***"
